package my.jbf.firstGame.Game;

import java.util.ArrayList;
import java.util.Iterator;

import my.jbf.firstGame.MODULE.RandomID;
import my.jbf.firstGame.PLAYER.Player;

public class Game
{
    private Game mGame;
    public Game getmGame() {
        if(mGame==null)
        {
            mGame=new Game();
        }
        return mGame;
    }
    private Game()
    {
        init();
    }
    private ArrayList<FightData> mALFightData;
    private ArrayList<CountryData> mALCountryData;

    public void init()
    {
        initself();
        getPlayerData();
        //getFightData();
        //getCountryData();

    }
    public void redent()
    {
        CountryData mCountryData;
        for (Iterator<CountryData> it = mALCountryData.iterator(); it.hasNext(); ) {
            mCountryData = it.next();

        }
        FightData mFightData;
        for(Iterator<FightData> it=mALFightData.iterator();it.hasNext();)
        {
            mFightData=it.next();

        }

    }
    private void initself()
    {
        mALCountryData=new ArrayList<>();
        mALFightData=new ArrayList<>();
    }
    public void getPlayerData()
    {
        //mPlayerData.setUserID(mRandomID.getRandomID("PLAYER",25));

    }

}
